﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.Security;

public partial class Huanbeng_Huanbeng : System.Web.UI.Page
{
    protected void Page_Load(object sender, EventArgs e)
    {

    }
    protected void GridView1_RowUpdating(object sender, GridViewUpdateEventArgs e)
    {
        if (Roles.IsUserInRole(User.Identity.Name, "admin") || Roles.IsUserInRole(User.Identity.Name, "huanbeng"))
        {

        }
        else
        {
            this.ClientScript.RegisterClientScriptBlock(this.GetType(), "", "alert( '对不起，您没有录入换泵数据的权限! ');", true);
        }
    }
}